@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
    --max-width: 1100px;
    --border-radius: 12px;
    --font-mono: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono",
    "Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro",
    "Fira Mono", "Droid Sans Mono", "Courier New", monospace;

    --foreground-rgb: 0, 0, 0;
    --background-start-rgb: 214, 219, 220;
    --background-end-rgb: 255, 255, 255;

    --primary-glow: conic-gradient(from 180deg at 50% 50%,
    #16abff33 0deg,
    #0885ff33 55deg,
    #54d6ff33 120deg,
    #0071ff33 160deg,
    transparent 360deg);
    --secondary-glow: radial-gradient(rgba(255, 255, 255, 1),
    rgba(255, 255, 255, 0));

    --tile-start-rgb: 239, 245, 249;
    --tile-end-rgb: 228, 232, 233;
    --tile-border: conic-gradient(#00000080,
    #00000040,
    #00000030,
    #00000020,
    #00000010,
    #00000010,
    #00000080);

    --callout-rgb: 238, 240, 241;
    --callout-border-rgb: 172, 175, 176;
    --card-rgb: 180, 185, 188;
    --card-border-rgb: 131, 134, 135;
}

/* @media (prefers-color-scheme: dark) {
  :root {
    --foreground-rgb: 255, 255, 255;
    --background-start-rgb: 0, 0, 0;
    --background-end-rgb: 0, 0, 0;

    --primary-glow: radial-gradient(rgba(1, 65, 255, 0.4), rgba(1, 65, 255, 0));
    --secondary-glow: linear-gradient(to bottom right,
        rgba(1, 65, 255, 0),
        rgba(1, 65, 255, 0),
        rgba(1, 65, 255, 0.3));

    --tile-start-rgb: 2, 13, 46;
    --tile-end-rgb: 2, 5, 19;
    --tile-border: conic-gradient(#ffffff80,
        #ffffff40,
        #ffffff30,
        #ffffff20,
        #ffffff10,
        #ffffff10,
        #ffffff80);

    --callout-rgb: 20, 20, 20;
    --callout-border-rgb: 108, 108, 108;
    --card-rgb: 100, 100, 100;
    --card-border-rgb: 200, 200, 200;
  }
} */

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    color: rgb(var(--foreground-rgb));
    /* background: linear-gradient(
        to bottom,
        transparent,
        rgb(var(--background-end-rgb))
      )
      rgb(var(--background-start-rgb)); */
}

a {
    color: inherit;
    text-decoration: none;
}

/* @media (prefers-color-scheme: dark) {
  html {
    color-scheme: dark;
  }
} */

/* CSS Utils */
.h1 {
    padding-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 1.125rem;
    color: #111928;
}

.h2 {
    font-size: 14px;
    font-weight: 500;
    color: #111928;
    line-height: 1.5;
}

.link {
    @apply text-blue-600 cursor-pointer hover:opacity-80 transition-opacity duration-200 ease-in-out;
}

.text-gradient {
    background: linear-gradient(91.58deg, #2250F2 -29.55%, #0EBCF3 75.22%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

@media screen and (max-width: 600px) {
    body {
        background: url(../assets/chat_bg.png) no-repeat center center fixed;
    }

    .markdown-body {
        max-width: 380px;
    }

    .xz-chat-answer-wrap {
        max-width: max-content;

        .xz-chat-answer-content {
            padding-left: 0;
            min-width: 200px;
        }
    }
    .vs_embed{
        .xz-chat-new {
            /*pointer-events: none;*/
            /*visibility: hidden;*/
            transform: translateX(-20px);
        }
    }
    .xz-chat-new {
        &:hover {
            background-color: #EBF5FF;
        }

    }

}

.xz-chat-answer-content {
    margin-bottom: 8px;
}
.x-chat-list > div:last-child .xz-chat-answer-loaded .xz-chat-answer-content {
    margin-bottom: 45px;
}
.xz-chat-answer-loading .xz-chat-answer-content {
    margin-bottom: 4px;
}
.xz-chat-answer-tool-wrapper {
    display: none;
    box-shadow: 0 0 7px 1px rgba(0, 0, 0, 0.24);
    z-index: 9;
}
.xz-chat-answer-wrap.vs_custom .xz-chat-answer-content{
    margin-bottom: 0;
}
.xz-chat-answer-tool-wrapper + *:hover {
    display: flex;
}
.xz-chat-answer-content::after {
    height: 27px;
    content: '\20';
    position: absolute;
    bottom: -15px;
    width: 100%;
    left: -5px;
}
.xz-chat-answer-tool-wrapper:hover,
.xz-chat-answer-content:hover .xz-chat-answer-tool-wrapper {
    display: flex;
}
.xz-chat-answer-wrap {
    details {
        background-color: #ffffff !important;
        /*border-left: 2px solid #e8eaf2 !important;*/
        padding: 8px 16px !important;
        line-height: 1.6;
    }
}

.xz-chat-question-content {
    background: linear-gradient(0deg, #1890FF, #1890FF),
    linear-gradient(90deg, rgba(18, 125, 239, 0) 0%, #127DEF 100%);

    .markdown-body {
        color: #fff;
    }
}

div[data-chat-role="cxr"],
div[data-cxr] {
    display: none;
}

.xz-chat-session-name {
    display: none;
}

.xz-chat-loader {
    position: absolute;
    top: calc(50% - 1.25em);
    left: calc(50% - 1.25em);
}

.markdown-body > strong,
.markdown-body > *,
.markdown-body > p{
    padding-left: 10px;
}

.xz-chat-answer-tool-wrapper {
    position: absolute;
    right: 0;
    bottom: -45px;
    padding: 4px 10px;
    border-radius: 10px;
    background: #fff;
}

.markdown-body blockquote {
    border-left: 2px solid #a1d6ff;
}

:root {
    --layout-primary-color: #1e8be5;
    --layout-primary-hover-color: #40a9ff;
    --layout-grey-color1: #d9d9d9;
}

*::-webkit-scrollbar-button {
    width: 0;
    height: 0;
}

*::-webkit-scrollbar-track {
    border-radius: 5px;
    background: #ffffff;
}

*::-webkit-scrollbar-corner,
*::-webkit-scrollbar-resizer,
*::-webkit-scrollbar-button {
    background: #fff;
}


*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: var(--layout-grey-color1);
}

*:hover::-webkit-scrollbar-thumb {
    background: var(--layout-grey-color1);
}

*:hover::-webkit-scrollbar-track {
    background: #f7f7f7;
}

*::-webkit-scrollbar-thumb {
    background: #ffffff;
    width: 6px;
    border-radius: 3px;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--layout-primary-hover-color);
}
